package com.thunbu.thunbu_meeting_system.viewMdel

import androidx.lifecycle.MutableLiveData
import com.thunbu.lib_common.base.CoroutineViewModel
import com.thunbu.thunbu_meeting_system.await
import com.thunbu.thunbu_meeting_system.launch
import com.thunbu.thunbu_meeting_system.service.ApiService
import com.thunbu.thunbu_meeting_system.service.MainNet
import com.thunbu.thunbu_meeting_system.utils.AppUtils


/**
 *Created by Chaolue.Fan on 2021/5/13
描述:
 */
class SettingViewModel : CoroutineViewModel<Unit>() {
    val success = MutableLiveData<Boolean>()
    override fun initModel() {

    }

    fun doLoginOut() {
        launch({
            val result = MainNet.server(ApiService::class.java).logout().await(true,true)
            success.value = true
        })
    }
}